package com.car.service;

import java.util.List;

import com.car.entity.Car;
import com.car.entity.Customer;
import com.car.entity.Driver;
import com.car.entity.User;

public interface UserService {
	
	/**
	 * true :成功
	 * false : 失败
	 * 用户注册
	 */
<<<<<<< HEAD
	public boolean regist(User user, Customer customer);
=======
	public boolean regist(User user, Customer customer) throws Exception;
>>>>>>> branch 'master' of https://gitee.com/kangdg/car.git
	
	/**
	 * true :成功
	 * false : 失败
	 * 用户登录
	 */
	public boolean login(User user);
	
	/**
	 * 修改自己的信息
	 */
	public boolean modifyUser(User user, Customer customer);
	
	/**
	 * 查看车辆
	 * 只能查看在库的汽车
	 */
	public List<Car> showCar();
	
	/**
	 * 查看司机
	 */
	public List<Driver> showDriver();
	
	/**
	 * 租车
	 */
	public Car rentCar(int carid);
	
	/**
	 * 租司机
	 */
	public Driver rentDriver(int driverid);
	
	/**
	 * 归还车辆
	 */
	public Car returnCar(int carid);
	
	/**
	 * 归还司机
	 */
	public Driver returnDriver(int driverid);

	/**
	 * 查看自己订单
	 */
	public String showOrder(int id);
	
	/**
	 * 删除自己的订单
	 */
	public boolean delOrder();

}
